<template>
  <div class="bar">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      fixed
      @click-left="onClickLeft"
  />
  </div>
</template>

<script>
export default {
  props:['title','route'],
  methods:{
    onClickLeft() {
        // this.$router.push({path:this.route})
        this.$router.go(-1)
    },
  }
}
</script>

<style scoped>
  .bar{
    padding-bottom: 60px;
  }
/deep/ .van-nav-bar__title{
	color: rgba(56, 56, 56, 1);
	background-color: rgba(255, 255, 255, 1);
	font-size: 18px;
	font-weight: bold;
}
</style>
